import request from '../request'
import requestUrl from '../requestUrl'
import requestParam from '../requestParam'



export function getList (params,page) {
  return request({
		headers: {"token": params},
    	url: requestUrl("taskList?page=" + page + "&limit=10"),
    	method: 'get',
  })
}

export function modifystatus (mess) {
  return request({
		headers: {"token": mess.token},
    	url: requestUrl("modifystatus/"+mess.id),
    	method: 'get',
  })
}

export function getDetail (mess) {
  return request({
		headers: {"token": mess.token},
    	url: requestUrl("resultList/"+mess.id),
    	method: 'get',
  })
}

export function deleteRecord (params) {
  return request({
		headers: {"token": params.token},
    url: requestUrl("deletetask/"+params.id),
    method: 'get',
  })
}
